-- GENERATED SPELL FOR [Flagglemurk the Cruel] --


function spell0_7015(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(11428,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7015', 2272, 1)
end

function spell1_7015(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7015', 586, 1)
end

function Sorts_7015(pUnit, Event)
local choix_sorts_7015 = math.random(0, 1)
if choix_sorts_7015 == 0 then
pUnit:RegisterEvent('spell0_7015', 1, 1)
end
if choix_sorts_7015 == 1 then
pUnit:RegisterEvent('spell1_7015', 1, 1)
end
end

function mob7015_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7015', math.random(1500, 3000), 1)
end

function mob7015_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7015_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7015_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7015, 1, 'mob7015_Action')
RegisterUnitEvent(7015, 2, 'mob7015_Leave')
RegisterUnitEvent(7015, 3, 'mob7015_Kill')
RegisterUnitEvent(7015, 4, 'mob7015_Die')
